<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/10/6
 * Time: 16:18
 */

namespace app\api\service;


use think\Loader;

Loader::import('WxPay.WxPay',EXTEND_PATH,'.Api.php');
class WxConfig extends \WxPayConfigInterface
{
    protected $AppId;
    protected $MerchantId;
    protected $Key;
    protected $AppSecret;
    protected $ReportLevenl;
    protected $SignType;

    /**
     * WxConfig constructor.
     */
    function __construct($appId,$merchantId,$key,$AppSecret = '')
    {
        $this->AppId =$appId ;
        $this->MerchantId = $merchantId;
        $this->Key = $key;
        $this->AppSecret = $AppSecret;
        $this->ReportLevenl = 1;//支付报错类型
        $this->SignType = 'MD5';//签名加密类型
    }

    public function GetAppId()
    {
        // TODO: Implement GetAppId() method.
        return $this->AppId;
    }

    public function GetMerchantId()
    {
        // TODO: Implement GetMerchantId() method.
        return $this->MerchantId;
    }

    public function GetNotifyUrl()
    {
        // TODO: Implement GetNotifyUrl() method.
    }

    public function GetSignType()
    {
        // TODO: Implement GetSignType() method.
        return $this->SignType;
    }

    public function GetProxy(&$proxyHost, &$proxyPort)
    {
        // TODO: Implement GetProxy() method.
    }

    public function GetReportLevenl()
    {
        // TODO: Implement GetReportLevenl() method.

        return $this->ReportLevenl;
    }

    public function GetKey()
    {
        // TODO: Implement GetKey() method.
        return $this->Key;
    }

    public function GetAppSecret()
    {
        // TODO: Implement GetAppSecret() method.
        return $this->AppSecret;
    }

    public function GetSSLCertPath(&$sslCertPath, &$sslKeyPath)
    {
        // TODO: Implement GetSSLCertPath() method.
    }
}